import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
import {createProdMockServer} from "vite-plugin-mock/es/createProdMockServer";
import MockMethod from "../mock/login";
import MockMethod2 from "../mock";

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <App/>
  </React.StrictMode>
)

const mockModules = [...MockMethod, ...MockMethod2]

if (process.env.NODE_ENV !== 'production') {
  createProdMockServer(mockModules);
}


